package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.sql.Timestamp;
import com.softlook.mt.server.db.dto.Gpsdata;
import com.softlook.mt.server.db.dto.Device;
import com.softlook.mt.server.db.dto.Event;
import com.softlook.mt.server.db.dto.Place;
import java.lang.String;
import java.lang.Object;

public class Deviceevent {
	private Integer deviceeventid;
	private Integer gpsdataid;
	private Integer deviceid;
	private Integer eventid;
	private Integer placeid;
	private Timestamp time;
	private Gpsdata gpsdataidGpsdataRefObj = null;
	private Device deviceidDeviceRefObj = null;
	private Event eventidEventRefObj = null;
	private Place placeidPlaceRefObj = null;
	public Integer getDeviceeventid() {
		return this.deviceeventid;
	}
	public void setDeviceeventid(Integer deviceeventid) {
		this.deviceeventid = deviceeventid;
	}
	public Integer getGpsdataid() {
		return this.gpsdataid;
	}
	public void setGpsdataid(Integer gpsdataid) {
		this.gpsdataid = gpsdataid;
	}
	public Integer getDeviceid() {
		return this.deviceid;
	}
	public void setDeviceid(Integer deviceid) {
		this.deviceid = deviceid;
	}
	public Integer getEventid() {
		return this.eventid;
	}
	public void setEventid(Integer eventid) {
		this.eventid = eventid;
	}
	public Integer getPlaceid() {
		return this.placeid;
	}
	public void setPlaceid(Integer placeid) {
		this.placeid = placeid;
	}
	public Timestamp getTime() {
		return this.time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("deviceeventid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("gpsdataid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("deviceid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("eventid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("placeid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("time".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Deviceevent)){
			return false;
		}
		
		Deviceevent table = (Deviceevent)object;
		if(this.deviceeventid == null &&  table.deviceeventid != null){
		   return false;
		}
		if(this.deviceeventid != null &&  table.deviceeventid == null){
		   return false;
		}
		if(this.deviceeventid != null && !this.deviceeventid.equals(table.deviceeventid)){
		   return false;
		}
		if(this.gpsdataid == null &&  table.gpsdataid != null){
		   return false;
		}
		if(this.gpsdataid != null &&  table.gpsdataid == null){
		   return false;
		}
		if(this.gpsdataid != null && !this.gpsdataid.equals(table.gpsdataid)){
		   return false;
		}
		if(this.deviceid == null &&  table.deviceid != null){
		   return false;
		}
		if(this.deviceid != null &&  table.deviceid == null){
		   return false;
		}
		if(this.deviceid != null && !this.deviceid.equals(table.deviceid)){
		   return false;
		}
		if(this.eventid == null &&  table.eventid != null){
		   return false;
		}
		if(this.eventid != null &&  table.eventid == null){
		   return false;
		}
		if(this.eventid != null && !this.eventid.equals(table.eventid)){
		   return false;
		}
		if(this.placeid == null &&  table.placeid != null){
		   return false;
		}
		if(this.placeid != null &&  table.placeid == null){
		   return false;
		}
		if(this.placeid != null && !this.placeid.equals(table.placeid)){
		   return false;
		}
		if(this.time == null &&  table.time != null){
		   return false;
		}
		if(this.time != null &&  table.time == null){
		   return false;
		}
		if(this.time != null && !this.time.equals(table.time)){
		   return false;
		}
		return true;
	}
	public Gpsdata getGpsdataidGpsdataRefObj() {
		return this.gpsdataidGpsdataRefObj;
	}
	public void setGpsdataidGpsdataRefObj(Gpsdata gpsdataidGpsdataRefObj) {
		this.gpsdataidGpsdataRefObj = gpsdataidGpsdataRefObj;
	}
	public Device getDeviceidDeviceRefObj() {
		return this.deviceidDeviceRefObj;
	}
	public void setDeviceidDeviceRefObj(Device deviceidDeviceRefObj) {
		this.deviceidDeviceRefObj = deviceidDeviceRefObj;
	}
	public Event getEventidEventRefObj() {
		return this.eventidEventRefObj;
	}
	public void setEventidEventRefObj(Event eventidEventRefObj) {
		this.eventidEventRefObj = eventidEventRefObj;
	}
	public Place getPlaceidPlaceRefObj() {
		return this.placeidPlaceRefObj;
	}
	public void setPlaceidPlaceRefObj(Place placeidPlaceRefObj) {
		this.placeidPlaceRefObj = placeidPlaceRefObj;
	}
}
